check if a list is sorted

join shbcf.ru